package com.example.seckill.validator;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class ValidateResult {
    private Boolean hasError =false;
    private Map<String, String> errorMap = new HashMap<>();

    public String getErrorMsgs(){
        return CollectionUtil.join(errorMap.values(),",");
    }

}
